﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hotnet.Entity.Enum;

namespace Hotnet.Entity
{
	public partial class Star
	{
		public string ShowCareer()
		{
			string[] careers = this.Career.Split(',');
			StringBuilder sb = new StringBuilder();
			sb.Append("|");
			foreach (var car in careers)
			{
				sb.Append(System.Enum.GetName(typeof(EnumCareer), Convert.ToInt32(car))).Append("|");
			}

			return sb.ToString();
		}
	}
}
